<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
	response.setCharacterEncoding("UTF-8");
	response.setContentType("text/xml");
	response.setHeader("Cache-Control","no-cache"); 
	response.setHeader("Pragma","no-cache"); 
%>
<menu>
	<!-- id , text就是menu的名 , disable为true就不可用 , action用于绑定js事件 -->
	<!-- id , text就是menu的名 , disable为true就不可用 , action用于绑定js事件 -->
	<item id="a" text="编辑"  action='showDialog("鼎烜集团  网络办公自动化系统","<%=basePath %>officesupplies/officesuppliesAction!gotoEdit.action?id=<s:property value='id' />","500","250");'/>
	<item id="a" text="删除"  action='showDialog("鼎烜集团  网络办公自动化系统","<%=basePath %>officesupplies/officesuppliesAction!gotoDel.action?id=<s:property value='id' />","320","150");'/>
	<!-- 库存大于零可申请 -->
	<s:if test="objctForm.repertory>0">
		<item id="a" text="申请使用"  action='showDialog("鼎烜集团  网络办公自动化系统","<%=basePath %>officesuppliesEntry/officesuppliesEntryAction!gotoAdd.action?oficesuppliesId=<s:property value='id' />","500","150");'/>
	</s:if>
	<s:if test="#session.user.roleName=='rszl' || #session.user.roleName=='xzrsjl'">
		<item id="a" text="采购申请"  action='showDialog("鼎烜集团  网络办公自动化系统","<%=basePath %>purchaseEntry/purchaseEntryAction!gotoEditPurchaseEntry.action?purchaseEntryForm.officesuppliesId=<s:property value='id' />","500","200");'/>
	</s:if>
	
	
</menu>
